package com.acmen.easyapi.executor;

import com.acmen.easyapi.model.CallResult;
import com.acmen.easyapi.model.CustomizePage;
import com.acmen.easyapi.model.Response;
import com.acmen.easyapi.repository.CallResultRepository;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

;

/**
 * 请求结果查询
 * @author acmen
 */
@Component
public class CallResultQueryExe {

    @Resource
    private CallResultRepository callResultRepository;

    public Response<CustomizePage<CallResult>> selectPage(String reportId, int pageSize, int pageNo) {
        return Response.of(callResultRepository.selectPage(reportId,pageSize,pageNo));
    }
}
